Skip to content

chore: update Android SDK to v4.1.1#70

Merged
mhamann merged 1 commit into
mainfrom
chore/bump-android-sdk-4.1.1
Feb 24, 2026
Merged

chore: update Android SDK to v4.1.1#70
mhamann merged 1 commit into
mainfrom
chore/bump-android-sdk-4.1.1

Conversation

@mhamann
Copy link
Copy Markdown
Contributor

@mhamann mhamann commented Feb 24, 2026

Overview

Updates the Rownd Android SDK dependency from v4.1.0 to v4.1.1 to include a critical bug fix that prevents fatal crashes in React Native applications.

Problem Fixed

The previous version had a DataStore singleton pattern violation that caused this fatal crash:

java.lang.IllegalStateException: There are multiple DataStores active 
for the same file: /data/data/.../files/datastore/rownd_state.json

Root Cause

  • StateRepo.defaultDataStore() was creating new DataStore instances on every call
  • Multiple DataStores accessing the same file violates Android DataStore requirements
  • Triggered by component re-mounting, activity lifecycle changes, or hot reloads

Solution in Android SDK v4.1.1

  • ✅ Fixed singleton pattern with proper instance caching
  • ✅ Added thread safety with @Synchronized annotation
  • ✅ Prevented memory leaks by using applicationContext
  • ✅ Eliminated risky null assertions

Impact

  • Before: Fatal crashes for customers using React Native
  • After: Stable, crash-free experience

Changes

  • android/build.gradle: Updated io.rownd:android from 4.1.04.1.1

Testing

  • Verified dependency update
  • No breaking API changes
  • Backward compatible

This resolves customer-reported production crashes and should be deployed immediately.

Updates io.rownd:android dependency from 4.1.0 to 4.1.1 to include
critical DataStore singleton fix that prevents fatal crashes in React
Native apps caused by multiple DataStore instances for the same file.

Fixes: IllegalStateException: There are multiple DataStores active
for the same file: rownd_state.json
@mhamann mhamann merged commit 0addf88 into main Feb 24, 2026
9 of 11 checks passed
@mhamann mhamann deleted the chore/bump-android-sdk-4.1.1 branch February 24, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants